package com.xyazm.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyazm.common.utils.PageUtils;
import com.xyazm.product.entity.AttrEntity;
import com.xyazm.product.entity.vo.AttrGroupRelationVo;
import com.xyazm.product.entity.vo.AttrRespVo;
import com.xyazm.product.entity.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xuyou
 * @email leifengyang@gmail.com
 * @date 2020-06-11 17:15:45
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

	void saveAttr(AttrVo attr);

	PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

	AttrRespVo getAttrInfo(Long attrId);

	void updateAttr(AttrVo attr);

	List<AttrEntity> getRelationAttr(Long attrgroupId);

	PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

	void deleteRelation(List<AttrGroupRelationVo> vos);
}

